package com.wish.wishhouse_foreclosure.controller;


import com.wish.wishhouse_foreclosure.entity.TMBank;
import com.wish.wishhouse_foreclosure.service.ITMBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.util.List;

/**
 * <p>
 * 银行代码表 前端控制器
 * </p>
 *
 * @author zhangshuxin
 * @since 2021-04-02
 */
@RestController
@RequestMapping("/tMBank")
public class TMBankController {
    @Autowired
    private ITMBankService itmBankService;

    @RequestMapping("/banks")
    public ResultEntity banks(){
        List<TMBank> itmBankServiceList = itmBankService.selectList();
        return ResultEntity.ok(itmBankServiceList);
    }

}

